{include file=header.html}
<script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
<script language="javascript" type="text/javascript" src="{lib file=jquery.plugins/jquery.validate.js}"></script>
<script type="text/javascript">
function evaluate_valid(){
	var sample_speed=$('input[name="sample_speed"]:checked').val();
	var sample_price=$('input[name="sample_price"]:checked').val();
	var sample_demand=$('input[name="sample_demand"]:checked').val();
	var sample_cooperate=$('input[name="sample_cooperate"]:checked').val();
	if(!sample_speed){
		alert("请填写回板速度");
		return false;
	}else if(!sample_price){
		alert("请填写样板价格");
		return false;
	}else if(!sample_demand){
		alert("请填写回板标准");
		return false;
	}else if(!sample_cooperate){
		alert("请填写配合度");
		return false;
	}else{
		return true;
	}
}
</script>
<style>
label.error {margin-left:2em; color:#FF0000;}
.tab-frame{width:700px;}
input {
	vertical-align: -5px;_vertical-align: -1px;margin-right: 5px
}
</style>
<body>
<div class="sub-body">
<div class="tab-frame">
<div class="tab-title-1">
<span>{$lang.sample_evaluate}</span>
</div>
<form action="" method="post" id="evaluate_form">
<table width="100%" cellspacing="0" cellpadding="0" class="tab-display">
	<tr>
		<th width="100" align="right">{$lang.sample_sn}：</th>
		<td align="left">{$evaluate.sample_sn|escape}</td>
	</tr>
	<tr>
		<th align="right">{$lang.sample_speed}：</th>
		<td align="left">
			<label><input type="radio" name="sample_speed" value="3" {if $evaluate.sample_speed == 3}checked="checked"{/if} />{$lang.good_evaluate}</label>&nbsp;&nbsp;&nbsp;&nbsp;
			<label><input type="radio" name="sample_speed" value="2" {if $evaluate.sample_speed == 2}checked="checked"{/if} />{$lang.common_evaluate}</label>&nbsp;&nbsp;&nbsp;&nbsp;
			<label><input type="radio" name="sample_speed" value="1" {if $evaluate.sample_speed == 1}checked="checked"{/if} />{$lang.bad_evaluate}</label>
		 </td>
	</tr>
	<tr>
		<th align="right">{$lang.sample_price}：</th>
		<td align="left">
			<label><input type="radio" name="sample_price" value="3" {if $evaluate.sample_price == 3}checked="checked"{/if} />{$lang.good_evaluate}</label>&nbsp;&nbsp;&nbsp;&nbsp;
			<label><input type="radio" name="sample_price" value="2" {if $evaluate.sample_price == 2}checked="checked"{/if} />{$lang.common_evaluate}</label>&nbsp;&nbsp;&nbsp;&nbsp;
			<label><input type="radio" name="sample_price" value="1" {if $evaluate.sample_price == 1}checked="checked"{/if} />{$lang.bad_evaluate}</label>
		</td>
	</tr>
	<tr>
		<th align="right">{$lang.sample_demand}：</th>
		<td align="left">
			<label><input type="radio" name="sample_demand" value="3" {if $evaluate.sample_demand == 3}checked="checked"{/if} />{$lang.good_evaluate}</label>&nbsp;&nbsp;&nbsp;&nbsp;
			<label><input type="radio" name="sample_demand" value="2" {if $evaluate.sample_demand == 2}checked="checked"{/if} />{$lang.common_evaluate}</label>&nbsp;&nbsp;&nbsp;&nbsp;
			<label><input type="radio" name="sample_demand" value="1" {if $evaluate.sample_demand == 1}checked="checked"{/if} />{$lang.bad_evaluate}</label>
		</td>
	</tr>
	<tr>
		<th align="right">{$lang.sample_cooperate}：</th>
		<td align="left">
			<label><input type="radio" name="sample_cooperate" value="3" {if $evaluate.sample_cooperate == 3}checked="checked"{/if} />{$lang.good_evaluate}</label>&nbsp;&nbsp;&nbsp;&nbsp;
			<label><input type="radio" name="sample_cooperate" value="2" {if $evaluate.sample_cooperate == 2}checked="checked"{/if} />{$lang.common_evaluate}</label>&nbsp;&nbsp;&nbsp;&nbsp;
			<label><input type="radio" name="sample_cooperate" value="1" {if $evaluate.sample_cooperate == 1}checked="checked"{/if} />{$lang.bad_evaluate}</label>
		</td>
	</tr>
	<tr>
		<th align="right">{$lang.evaluate_content}：</th>
		<td align="left">
			<textarea id="evaluate_content" name="evaluate_content" style="width:550px; height:50px;">{$evaluate.evaluate_content}</textarea>
		</td>
	</tr>
</table>
<div style="text-align:center;padding-top: 10px">
	<input type="submit" value="{$lang.submit}" class="btn-2" onclick="return evaluate_valid()" />&nbsp;&nbsp;<input type="button" class="btn-2" value="返回" onClick="history.back();" />
</div>
</form>
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
</div>
</div>
</body>
</html>